$(document).ready(function(){

	$("#search-btn").on("click",activeSearch());


	$.ajax({
		type: "POST",
		url: "./visualizzaDipartimento",
		data: {"DIPART_ID" : window.location.hash.substring(1) },
		dataType: "xml",

		success: function(data){






			$(data).find('report').each(function() {
				
				var nomeDip = $(this).find('nome_dipartimento').text();
				
				$("#nomedipartimento").val(nomeDip);
				
			}); // FINE EACH FUNCTION

			
		}


		

	});
	
	
});


function activeSearch(){
	
	$("li").removeClass("active");	
	$("li#search-btn").addClass("active");
	$("#white-notify").removeClass("white-notify");
}